package com.service.bean.company;

public class Company {

	public Company() {

	}

	public Company(String code) {
		this.code = code;
	}

	public String code;
	public String place;
	public String companyName;
	public String dataConnection;
	public String dbUser="dev_user";
	public String dbPwd="hh123456";

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Company)) {
			return false;
		}
		Company company = (Company) obj;
		if (company.code.equals(this.code)) {
			return true;
		} else {
			return false;
		}
	}

	@Override
	public int hashCode() {
		int result = 17;
		result = 37 * result + objectHashCode(code);
		return result;
	}
	
	int objectHashCode(Object obj) {
		if (obj == null) {
			return 0;
		}
		return obj.hashCode();
	}
}
